﻿using System;
using System.Collections.Generic;

namespace AdaptiveAgents.Distributions
{
    /// <summary>
    /// Holds x and y values together
    /// </summary>
    public class Point
    {
        //Data members
        private double _x;
        private double _y;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="x">Value of x</param>
        /// <param name="y">Value of y</param>
        public Point(double x, double y)
        {
            _x = x;
            _y = y;
        }

        /// <summary>
        /// Gets value of x
        /// </summary>
        public double X { get { return _x; } }
        
        /// <summary>
        /// Gets value of y
        /// </summary>
        public double Y { get { return _y; } }

        /// <summary>
        /// String representation of point data in format (x,y)
        /// </summary>
        public override string ToString()
        {
            return String.Format("({0},{1})", _x, _y);
        }

    }
}
